package com.example.parking.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.parking.entity.Garage;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GarageMapper extends BaseMapper<Garage> {
    //查看是否有空余车位
    @Select("SELECT * FROM garage WHERE state = 0")
    List<Garage> findFree();
}
